{% extends 'homepage.html' %}

{% block body %}

<!--{{ info.query }}-->

<h2> Further refine search </h2>


<table border=0  >

<tr>
<form>
<td align=center> Conductor <input type='text' name='conductor'  value={{info.conductor}}></td>
<td align=center>Rank <input type='text' name='rank' value={{info.rank}}></td>
<td align=center>Torsion Order <input type='text' name='torsion' value={{info.torsion}}> 
Optimal <input type='checkbox' name='optimal' {% if info.optimal %} checked {%endif %}></td>
</tr>


<tr>
<td>
<input type='submit' value='refine'></td>
</tr>
</form>
<tr>
<td><h2>Results</h2></td>
<tr>
<td align=center>Cremona label</td>
<td align=center>[\(a_1\),\(a_2\),\(a_3\),\(a_4\),\(a_6\)]</td>
<td align=center>rank</td>
<td align=center>torsion order</td>
</tr>
{% for curve in info.curves: %}
<tr>
<td align=center><a href="/EllipticCurve/Q/{{curve.conductor}}/{{curve.iso}}/{{curve.number}}">{{curve.label}}</a></td>
<td>{{info.format_ainvs(curve.ainvs)}}</td>
<td align=center>{{curve.rank}}</td>
<td align=center>{{curve.torsion}}</td>
</tr>
{% endfor %}
</table>

{% endblock %}
